package de.dhbw.tinf11b.vfb;

import de.dhbw.tinf11b.vfb.exceptions.MarkOutOfBoundsException;

public class BachelorsDegree {
	protected Student student;
	protected DegreeType degreeType;
	protected float mark;
	
	public BachelorsDegree(Student student, DegreeType degreeType, float mark) throws MarkOutOfBoundsException {
		this.student = student;
		this.degreeType = degreeType;
		this.mark = mark;
		if (mark < 1.0 || mark > 5.0) {
			throw new MarkOutOfBoundsException();
		}	
	}

	public Student getStudent() {
		return student;
	}

	public void setStudent(Student student) {
		this.student = student;
	}

	public DegreeType getDegreeType() {
		return degreeType;
	}

	public void setDegreeType(DegreeType degreeType) {
		this.degreeType = degreeType;
	}

	public float getMark() {
		return mark;
	}

	public void setMark(float mark) {
		this.mark = mark;
	}
}